From f2915180a6a09c10f38aed15b4aefeaa86fe12fc Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 30 Jan 2020 22:34:53 +0800 Subject: [PATCH] tests/testdnd2.c: Don't include unistd.h unconditionally Instead, on Windows when it is not available, include io.h for close() --- tests/testdnd2.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/testdnd2.c b/tests/testdnd2.c index 11d604fee5..a9a2f6382f 100644 --- a/tests/testdnd2.c +++ b/tests/testdnd2.c @@ -1,6 +1,11 @@ -#include #include +#ifdef HAVE_UNISTD_H +#include +#elif defined (G_OS_WIN32) +#include +#endif + static GdkTexture * get_image_texture (GtkImage *image, int *out_size) -- 2.30.2